\(\int \frac {\arctan (a x)}{x^2 (c+a^2 c x^2)^{3/2}} \, dx\) [237]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 22, antiderivative size = 103 \[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=-\frac {a}{c \sqrt {c+a^2 c x^2}}-\frac {a^2 x \arctan (a x)}{c \sqrt {c+a^2 c x^2}}-\frac {\sqrt {c+a^2 c x^2} \arctan (a x)}{c^2 x}-\frac {a \text {arctanh}\left (\frac {\sqrt {c+a^2 c x^2}}{\sqrt {c}}\right )}{c^{3/2}} \]

[Out]

-a*arctanh((a^2*c*x^2+c)^(1/2)/c^(1/2))/c^(3/2)-a/c/(a^2*c*x^2+c)^(1/2)-a^2*x*arctan(a*x)/c/(a^2*c*x^2+c)^(1/2
)-arctan(a*x)*(a^2*c*x^2+c)^(1/2)/c^2/x

Rubi [A] (verified)

Time = 0.14 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {5086, 5064, 272, 65, 214, 5014} \[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=-\frac {\arctan (a x) \sqrt {a^2 c x^2+c}}{c^2 x}-\frac {a^2 x \arctan (a x)}{c \sqrt {a^2 c x^2+c}}-\frac {a \text {arctanh}\left (\frac {\sqrt {a^2 c x^2+c}}{\sqrt {c}}\right )}{c^{3/2}}-\frac {a}{c \sqrt {a^2 c x^2+c}} \]

[In]

Int[ArcTan[a*x]/(x^2*(c + a^2*c*x^2)^(3/2)),x]

[Out]

-(a/(c*Sqrt[c + a^2*c*x^2])) - (a^2*x*ArcTan[a*x])/(c*Sqrt[c + a^2*c*x^2]) - (Sqrt[c + a^2*c*x^2]*ArcTan[a*x])
/(c^2*x) - (a*ArcTanh[Sqrt[c + a^2*c*x^2]/Sqrt[c]])/c^(3/2)

Rule 65

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 272

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 5014

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/((d_) + (e_.)*(x_)^2)^(3/2), x_Symbol] :> Simp[b/(c*d*Sqrt[d + e*x^2]),
 x] + Simp[x*((a + b*ArcTan[c*x])/(d*Sqrt[d + e*x^2])), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*d]

Rule 5064

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^2)^(q_.), x_Symbol] :> Simp
[(f*x)^(m + 1)*(d + e*x^2)^(q + 1)*((a + b*ArcTan[c*x])^p/(d*f*(m + 1))), x] - Dist[b*c*(p/(f*(m + 1))), Int[(
f*x)^(m + 1)*(d + e*x^2)^q*(a + b*ArcTan[c*x])^(p - 1), x], x] /; FreeQ[{a, b, c, d, e, f, m, q}, x] && EqQ[e,
 c^2*d] && EqQ[m + 2*q + 3, 0] && GtQ[p, 0] && NeQ[m, -1]

Rule 5086

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*(x_)^(m_)*((d_) + (e_.)*(x_)^2)^(q_), x_Symbol] :> Dist[1/d, Int[
x^m*(d + e*x^2)^(q + 1)*(a + b*ArcTan[c*x])^p, x], x] - Dist[e/d, Int[x^(m + 2)*(d + e*x^2)^q*(a + b*ArcTan[c*
x])^p, x], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*d] && IntegersQ[p, 2*q] && LtQ[q, -1] && ILtQ[m, 0] &
& NeQ[p, -1]

Rubi steps \begin{align*} \text {integral}& = -\left (a^2 \int \frac {\arctan (a x)}{\left (c+a^2 c x^2\right )^{3/2}} \, dx\right )+\frac {\int \frac {\arctan (a x)}{x^2 \sqrt {c+a^2 c x^2}} \, dx}{c} \\ & = -\frac {a}{c \sqrt {c+a^2 c x^2}}-\frac {a^2 x \arctan (a x)}{c \sqrt {c+a^2 c x^2}}-\frac {\sqrt {c+a^2 c x^2} \arctan (a x)}{c^2 x}+\frac {a \int \frac {1}{x \sqrt {c+a^2 c x^2}} \, dx}{c} \\ & = -\frac {a}{c \sqrt {c+a^2 c x^2}}-\frac {a^2 x \arctan (a x)}{c \sqrt {c+a^2 c x^2}}-\frac {\sqrt {c+a^2 c x^2} \arctan (a x)}{c^2 x}+\frac {a \text {Subst}\left (\int \frac {1}{x \sqrt {c+a^2 c x}} \, dx,x,x^2\right )}{2 c} \\ & = -\frac {a}{c \sqrt {c+a^2 c x^2}}-\frac {a^2 x \arctan (a x)}{c \sqrt {c+a^2 c x^2}}-\frac {\sqrt {c+a^2 c x^2} \arctan (a x)}{c^2 x}+\frac {\text {Subst}\left (\int \frac {1}{-\frac {1}{a^2}+\frac {x^2}{a^2 c}} \, dx,x,\sqrt {c+a^2 c x^2}\right )}{a c^2} \\ & = -\frac {a}{c \sqrt {c+a^2 c x^2}}-\frac {a^2 x \arctan (a x)}{c \sqrt {c+a^2 c x^2}}-\frac {\sqrt {c+a^2 c x^2} \arctan (a x)}{c^2 x}-\frac {a \text {arctanh}\left (\frac {\sqrt {c+a^2 c x^2}}{\sqrt {c}}\right )}{c^{3/2}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.16 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.18 \[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=-\frac {a \sqrt {c \left (1+a^2 x^2\right )}}{c^2 \left (1+a^2 x^2\right )}-\frac {\sqrt {c \left (1+a^2 x^2\right )} \left (1+2 a^2 x^2\right ) \arctan (a x)}{c^2 x \left (1+a^2 x^2\right )}+\frac {a \log (x)}{c^{3/2}}-\frac {a \log \left (c+\sqrt {c} \sqrt {c \left (1+a^2 x^2\right )}\right )}{c^{3/2}} \]

[In]

Integrate[ArcTan[a*x]/(x^2*(c + a^2*c*x^2)^(3/2)),x]

[Out]

-((a*Sqrt[c*(1 + a^2*x^2)])/(c^2*(1 + a^2*x^2))) - (Sqrt[c*(1 + a^2*x^2)]*(1 + 2*a^2*x^2)*ArcTan[a*x])/(c^2*x*
(1 + a^2*x^2)) + (a*Log[x])/c^(3/2) - (a*Log[c + Sqrt[c]*Sqrt[c*(1 + a^2*x^2)]])/c^(3/2)

Maple [C] (verified)

Result contains complex when optimal does not.

Time = 0.44 (sec) , antiderivative size = 219, normalized size of antiderivative = 2.13

method result size
default \(-\frac {\left (\ln \left (\frac {i a x +1}{\sqrt {a^{2} x^{2}+1}}+1\right ) a^{3} x^{3}-\ln \left (\frac {i a x +1}{\sqrt {a^{2} x^{2}+1}}-1\right ) a^{3} x^{3}+2 \arctan \left (a x \right ) \sqrt {a^{2} x^{2}+1}\, a^{2} x^{2}+\ln \left (\frac {i a x +1}{\sqrt {a^{2} x^{2}+1}}+1\right ) a x -\ln \left (\frac {i a x +1}{\sqrt {a^{2} x^{2}+1}}-1\right ) a x +\sqrt {a^{2} x^{2}+1}\, a x +\arctan \left (a x \right ) \sqrt {a^{2} x^{2}+1}\right ) \sqrt {a^{2} x^{2}+1}\, \sqrt {c \left (a x -i\right ) \left (a x +i\right )}}{x \,c^{2} \left (a^{4} x^{4}+2 a^{2} x^{2}+1\right )}\) \(219\)

[In]

int(arctan(a*x)/x^2/(a^2*c*x^2+c)^(3/2),x,method=_RETURNVERBOSE)

[Out]

-(ln((1+I*a*x)/(a^2*x^2+1)^(1/2)+1)*a^3*x^3-ln((1+I*a*x)/(a^2*x^2+1)^(1/2)-1)*a^3*x^3+2*arctan(a*x)*(a^2*x^2+1
)^(1/2)*a^2*x^2+ln((1+I*a*x)/(a^2*x^2+1)^(1/2)+1)*a*x-ln((1+I*a*x)/(a^2*x^2+1)^(1/2)-1)*a*x+(a^2*x^2+1)^(1/2)*
a*x+arctan(a*x)*(a^2*x^2+1)^(1/2))*(a^2*x^2+1)^(1/2)*(c*(a*x-I)*(I+a*x))^(1/2)/x/c^2/(a^4*x^4+2*a^2*x^2+1)

Fricas [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.01 \[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=\frac {{\left (a^{3} x^{3} + a x\right )} \sqrt {c} \log \left (-\frac {a^{2} c x^{2} - 2 \, \sqrt {a^{2} c x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) - 2 \, \sqrt {a^{2} c x^{2} + c} {\left (a x + {\left (2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )\right )}}{2 \, {\left (a^{2} c^{2} x^{3} + c^{2} x\right )}} \]

[In]

integrate(arctan(a*x)/x^2/(a^2*c*x^2+c)^(3/2),x, algorithm="fricas")

[Out]

1/2*((a^3*x^3 + a*x)*sqrt(c)*log(-(a^2*c*x^2 - 2*sqrt(a^2*c*x^2 + c)*sqrt(c) + 2*c)/x^2) - 2*sqrt(a^2*c*x^2 +
c)*(a*x + (2*a^2*x^2 + 1)*arctan(a*x)))/(a^2*c^2*x^3 + c^2*x)

Sympy [F]

\[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=\int \frac {\operatorname {atan}{\left (a x \right )}}{x^{2} \left (c \left (a^{2} x^{2} + 1\right )\right )^{\frac {3}{2}}}\, dx \]

[In]

integrate(atan(a*x)/x**2/(a**2*c*x**2+c)**(3/2),x)

[Out]

Integral(atan(a*x)/(x**2*(c*(a**2*x**2 + 1))**(3/2)), x)

Maxima [F]

\[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=\int { \frac {\arctan \left (a x\right )}{{\left (a^{2} c x^{2} + c\right )}^{\frac {3}{2}} x^{2}} \,d x } \]

[In]

integrate(arctan(a*x)/x^2/(a^2*c*x^2+c)^(3/2),x, algorithm="maxima")

[Out]

integrate(arctan(a*x)/((a^2*c*x^2 + c)^(3/2)*x^2), x)

Giac [F]

\[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=\int { \frac {\arctan \left (a x\right )}{{\left (a^{2} c x^{2} + c\right )}^{\frac {3}{2}} x^{2}} \,d x } \]

[In]

integrate(arctan(a*x)/x^2/(a^2*c*x^2+c)^(3/2),x, algorithm="giac")

[Out]

sage0*x

Mupad [F(-1)]

Timed out. \[ \int \frac {\arctan (a x)}{x^2 \left (c+a^2 c x^2\right )^{3/2}} \, dx=\int \frac {\mathrm {atan}\left (a\,x\right )}{x^2\,{\left (c\,a^2\,x^2+c\right )}^{3/2}} \,d x \]

[In]

int(atan(a*x)/(x^2*(c + a^2*c*x^2)^(3/2)),x)

[Out]

int(atan(a*x)/(x^2*(c + a^2*c*x^2)^(3/2)), x)